package com.bestdreamer.thread_synchronized;

public class Demo3ThreadB extends Thread {

    private final Demo3Service service;
    public Demo3ThreadB(Demo3Service service){
        super();
        this.service = service;
    }

    @Override
    public void run() {
        service.setUsernamePassword("b","bb");
    }
}
